package model;
public class Topic {

	private String topicNo;
	private String topicTitle;
	private String topicQuery;
	private String topicDescription;
	private String topicNarrative;

	public Topic(String topicNo, String topicTitle, String topicQuery,
			String topicDescription, String topicNarrative) {
		this.topicNo = topicNo;
		this.topicTitle = topicTitle;
		this.topicQuery = topicQuery;
		this.topicDescription = topicDescription;
		this.topicNarrative = topicNarrative;
	}

	public String getTopicNo() {
		return topicNo;
	}

	public void setTopicNo(String topicNo) {
		this.topicNo = topicNo;
	}

	public String getTopicTitle() {
		return topicTitle;
	}

	public void setTopicTitle(String topicTitle) {
		this.topicTitle = topicTitle;
	}

	public String getTopicQuery() {
		return topicQuery;
	}

	public void setTopicQuery(String topicQuery) {
		this.topicQuery = topicQuery;
	}

	public String getTopicDescription() {
		return topicDescription;
	}

	public void setTopicDescription(String topicDescription) {
		this.topicDescription = topicDescription;
	}

	public String getTopicNarrative() {
		return topicNarrative;
	}

	public void setTopicNarrative(String topicNarrative) {
		this.topicNarrative = topicNarrative;
	}

	public String toString() {
		String toReturn = "";
		String divider = "------------------------------------\n";
		String divider2 = "++++++++++++++++++++++++++++++++++++++++\n";
		toReturn = toReturn.concat("\n\nTopic Info\n" + divider2);
		toReturn = toReturn.concat("\nTopic\n" + divider + topicNo + "\n\n");
		toReturn = toReturn.concat("Title\n" + divider + topicTitle + "\n\n");
		toReturn = toReturn.concat("Query\n" + divider + topicQuery + "\n\n");
		toReturn = toReturn.concat("Description\n" + divider + topicDescription
				+ "\n\n");
		toReturn = toReturn.concat("Narrative\n" + divider + topicNarrative
				+ "\n\n");
		return toReturn;
	}
}
